<template>
  <div class="rec-container">
    <div
      class="rec-container-item"
      v-for="(item, index) in recommendData"
      :key="index"
      @click="sendRecommendQa(item)"
    >
      {{ item.question }}
    </div>
  </div>
</template>

<script>
export default {
  components: {},
  props: {
    recommendData: {
      type: Array,
      default: () => {
        return [];
      },
    },
  },
  computed: {},
  watch: {},
  mounted() {},
  data() {
    return {};
  },
  methods: {
    sendRecommendQa(item) {
      // console.log('recommended---------》item', item, item.question);
      this.$emit("sendRecommendQa", item.question);
    },
  },
};
</script>
<style lang="less" scoped>
div {
  // margin: 0;
  // padding: 0;
  // border: 0;
  box-sizing: border-box;
}

@media (min-width: 800px) {
  .rec-container {
    max-width: 712px;
  }
}

.rec-container {
  &-item {
    margin-top: 8px;
    cursor: pointer;
    width: fit-content;

    display: flex;
    padding: var(--spacing-base) var(--spacing-base-loose);
    flex-direction: column;
    justify-content: center;
    // align-items: center;

    border-radius: var(--radius-large);
    border: var(--border-thickness) solid var(--color-border-normal);
    background: var(--inverse-opacity-4);
    /* shadow/--shadow-small-light */
    box-shadow: var(--shadow-small-light-x-1) var(--shadow-small-light-y-1)
        var(--shadow-large-light-blur-1) var(--shadow-small-light-spread-1)
        var(--shadow-small-light-color-1),
      var(--shadow-small-light-x-2) var(--shadow-small-light-y-2)
        var(--shadow-small-light-blur-2) var(--shadow-small-light-spread-2)
        var(--shadow-small-light-color-2),
      var(--shadow-small-light-x-3) var(--shadow-small-light-y-3)
        var(--shadow-small-light-blur-3) var(--shadow-small-light-spread-3)
        var(--shadow-small-light-color-3);
    color: var(--color-primary-normal);
    /* caption/--caption-medium */
    font-family: "PingFang SC";
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 16px; /* 133.333% */
  }
}
</style>
